package com.okq.service.Impl;

import com.okq.dao.JobProductHistoryDao;
import com.okq.entity.JobProductHistory;
import com.okq.service.IJobProductHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 描述 : 工单产品处理历史接口实现类
 * 作者 : zdl
 * 日期 : 2017/6/29 11:16
 */
@Transactional
@Service
public class JobProductHistoryServiceImpl implements IJobProductHistoryService {
    @Autowired
    private JobProductHistoryDao jobProductHistoryDao;

    @Override
    public void saveJobProductHistory(JobProductHistory jobProductHistory) {
        jobProductHistoryDao.saveJobProductHistory(jobProductHistory);
    }

    @Override
    public void updateJobProductHistory(JobProductHistory jobProductHistory) {
        jobProductHistoryDao.updateJobProductHistory(jobProductHistory);
    }

    @Override
    public List<JobProductHistory> listJobProductHistoryByJpId(String jpId) {
        return jobProductHistoryDao.listJobProductHistoryByJpId(jpId);
    }
}
